Page({
  onLoad(){
    getApp().checkLogin()
    this.getList()
  },
  async getList(){
    let {data} =  await wx.http({
      url:'/visitor'
    })
    this.setData({
      list:data.rows
    })
  },

  goPassport(e) {
    wx.navigateTo({
      url: '/visitor_pkg/pages/passport/index?id='+e.mark.id,
    })
  },
})
